var express = require('express'),
    router = express.Router(),
    User=require('../models/user');


router.get('/', function(req, res) {
    User.offline(req.session.username);
    req.session.destroy();
    res.redirect('/login');
});

module.exports = router;
